
import time
from selenium import  webdriver

driver = webdriver.Chrome()
driver.get('https://www.saucedemo.com/inventory.html')

time.sleep(5)
#
driver.find_element_by_id('user-name').send_keys('standard_user')
driver.find_element_by_id('password').send_keys('secret_sauce')
driver.find_element_by_id('login-button').click()
# driver.find_element_by_link_text('用户注册').click()
# driver.find_element_by_id('username').send_keys('111111')
# driver.find_element_by_id('password').send_keys('111111')
# driver.find_element_by_xpath('/html/body/div/form/button').click()
#
time.sleep(5)


driver.close()
